<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/list.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/header.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/home/css/content.css"/>
		<script src="./Public/home/js/jquery-1.7.2.min.js"></script>
		<script src="./Public/home/js/style.js"></script>
		<script src="./Public/home/js/area.js"></script>
		<!--上传插件-->
		 <script src="./Public/uploadify/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
	    <script src="./Public/uploadify/jquery.uploadify.min.js" type="text/javascript" charset="utf-8"></script>
	    <link rel="stylesheet" type="text/css" href="./Public/uploadify/uploadify.css"/>
	</head>
	<body>
	<div id="edit-password"></div>
	<div class="edit-box">
		<div class="edit-box-title">修改密码<span class="del">x</span></div>
		<div class="edit-box-content">
			<form action="http://localhost/360shop/index.php?m=Home&c=Member&a=edit" method="post">
				<span>旧 密 码：</span><input type="password" name="oldpassword" placeholder="请输入旧密码" /><br />
				<span> 密 码：</span><input type="password" name="password" placeholder="请输入新密码" /><br />
				<span>确认密码：</span><input type="password" name="repassword" placeholder="请确认新密码"/><br />	
				<span>验证码：</span><input type="text" name="code" placeholder="请输入验证码" style="width: 160px;"/><img src="http://localhost/360shop/index.php?m=Home&c=Member&a=code" style="position: relative;top:10px;margin-left: 5px;"/>
				<input type="hidden" name="uid" value="1" />
				<input type="submit" value="提交" class="edit-box-btn"/>
			</form>
		</div>
	</div>
	<!--header-->
	<div id="header">
		<div class="header"> 
			<div class="headerTop">
				<div class="headerLeft">
					<h1>
						<a href="http://localhost/360shop/index.php?m=Home&c=Index&a=index"><img src="./Public/home/images/logo1_cc09ff8.png"/></a>
					</h1>
				</div>
				<div class="headerRight">
					<ul class="header-car">
						<li class="shop-car">
							<a href="http://localhost/360shop/index.php?m=Home&c=Cart&a=index" class="cart-add">购物车(<span>0
               </span>)</a>
							<!--<div class="car-box">
																<div class="shop-car-empty">购物车中还没有商品,赶紧选购吧!</div>
								
               							</div>-->
						</li>
					</ul>
					<div class="select">
						<form action="" method="get">
							<input type="text" class="select-box" />
							<input type="submit" value="360手机" class="select-btn"/>
						</form>
					</div>
					<ul class="navbar">
						<li><a href="http://localhost/360shop/index.php?m=Home&c=Index&a=index" >首页</a></li>
												<li><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=1">手机</a></li>
												<li><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=14">耳机</a></li>
												<li><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=13">能源</a></li>
												<li><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=20">智能硬件</a></li>
												<li><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=18">VR眼镜/车载设备</a></li>
												<li><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=19">存储</a></li>
											</ul>
				</div>
			</div>
			<div class="header-bottom">
				<div class="header-bottom-box">
					<div class="bottom-left-hover">
						<div class="header-bottom-left">全部商品分类</div>
						<ul class="nav-list">
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=1" class="nav-list-title">手机</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=21">智能机</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=22">商务机</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=24">双卡双待</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=14" class="nav-list-title">耳机</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=25">有线耳机</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=26">蓝牙耳机</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=27">运动耳机</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=13" class="nav-list-title">能源</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=28">电池</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=29">移动电源</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=20" class="nav-list-title">智能硬件</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=43">智能手表</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=30">智能路由器</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=31">随身WIFI</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=18" class="nav-list-title">VR眼镜/车载设备</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=32">VR眼镜</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=33">车载设备</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=19" class="nav-list-title">存储</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=34">内存卡</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=35">U盘</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=36">移动硬盘</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=17" class="nav-list-title">保护</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=39">保护套</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=40">后壳</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=41">贴膜</a>
															</li>
													<li>
								<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=15" class="nav-list-title">手机配件</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=37">充电器</a>
																<a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=38">数据线</a>
															</li>
											</ul>
					</div>
					<ul class="header-bottom-right">
						<li class="li-nav">
							<span style="padiving-left: 15px;">网站导航</span>
							<div class="all-list">
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=1">手机</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=14">耳机</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=13">能源</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=20">智能硬件</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=18">VR眼镜/车载设备</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=19">存储</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=17">保护</a></div>
																<div><a href="http://localhost/360shop/index.php?m=Home&c=List&a=index&cid=15">手机配件</a></div>
															</div>
						</li>
						                
						<li>
							<a href="http://localhost/360shop/index.php?m=Home&c=Presonal&a=index">CRBHF</a>
							<a href="http://localhost/360shop/index.php?m=Home&c=Member&a=del">退出登录</a>
							
						</li>
												<li class="order"><a href="http://localhost/360shop/index.php?m=Home&c=Presonal&a=order">我的订单</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<!--/header-->
	<!--/header-->
	<div id="row">
		<!--left-->
		<div id="presonal">
	<div class="presonal">个人中心</div>
	<div class="presonal-list">
		<p class="presonal-list-title">订单中心</p>
		<ul>
			<li><a href="http://localhost/360shop/index.php?m=Home&c=Presonal&a=index">我的首页</a></li>
			<li><a href="http://localhost/360shop/index.php?m=Home&c=Presonal&a=order">我的订单</a></li>
		<p class="presonal-list-title">账户中心</p>
			<li><a href="http://localhost/360shop/index.php?m=Home&c=Presonal&a=presonal">修改个人信息</a></li>
			<li><a href="http://localhost/360shop/index.php?m=Home&c=Presonal&a=address">收货地址</a></li>
			<li class="presonal-list-edit"><a href="javascript:;">修改密码</a></li>
		</ul>
	</div>
</div>
		<!--/left-->
		<!--right-->
		<div id="presonal-right">
			<form action="" method="post">
			<div class="my-head">我的头像</div>
			<div lab="uploadFile">
				<!-- file表单 -->
			    <input id="f" type="file" multiple="true">
			    <span>类型: *.jpg,*.png 大小: 2000KB 数量: 1</span>
			    <script type="text/javascript">
			        $(function() {
			            $('#f').uploadify({
			                'formData'     : {//POST数据
			                    '<?php echo session_name();?>' : '<?php echo session_id();?>',
			                },
			                'fileTypeExts' : '*.jpg;*.png',
			                'swf'      : '<?php echo __PUBLIC__?>/uploadify/uploadify.swf',
			                'uploader' : '<?php echo U('upload')?>',//指定服务器上传的方法
			                'buttonText':'选择文件',
			                'fileSizeLimit' : '2000KB',
			                'uploadLimit' : 1,//上传文件数
			                'width':65,
			                'height':25,
			                'successTimeout':10,//等待服务器响应时间
			                'removeTimeout' : 0.2,//成功显示时间
			                'onUploadSuccess' : function(file, data, response) {
			                    //把php返回的数据转为json
			                    data=$.parseJSON(data);
			                    //获得图片地址
			                    var imageUrl = data.url;
			                    var li="<li>";
			                    li += "<img src='"+imageUrl+"'/>";
			                    li += "<input type='hidden' name='photo' id='photo' value='"+data.path+"'/><a href='javascript:;' id='self-close'>X</a>";
			                    li += "</li>";
			                    $("#uploadList ul").prepend(li);
			                }
			            });
			
						//关闭图片
			            var i = 1;
		           		 $('#self-close').live('click',function(){
			            	var pic=$("#photo").attr('value');
			            	$.ajax({
			                	type:'post',
			                	url:"<?php echo U('Presonal/delUpload')?>",
			                	data:{path:pic}
			              	});
			                $(this).parent('li').remove();
                			i++;
               				$('#f').uploadify('settings','uploadLimit',i);
		            	})
			        });
				    </script>
				    <div id="uploadList">
				        <ul>
				        	<?php if($data['photo']){?>
                
							<li>
								<img src="<?php echo $data['photo']?>" />
								<input type="hidden" name="photo" id="photo" value="<?php echo $data['photo']?>" /><a href="javascript:;" id="self-close">X</a>
							</li>
							
               <?php }?>
				        </ul>
				    </div>
				</div>
			<div class="my-head">个人信息</div>
				<p class="span-main">昵称：</p><input type="text" class="form-name" name="nickname" value="<?php echo $data['nickname']?>"/><br />
				<p class="span-main">邮箱：</p><input type="email" class="form-name" name="email" value="<?php echo $data['email']?>"/><br />
				<p class="span-main span-presonal">个性签名:</p><textarea class="form-text" name="personalized"><?php echo $data['personalized']?></textarea><br />
				<input type="hidden" name="uid" value="<?php echo $_SESSION['nickuser']['uid']?>" />
				<input type="submit" value="保存" class="form-btn"/>
			</form>
		</div>
		<!--/right-->
	</div>
	<!--footer-->
	<div id="footer">
	<div class="footer">
		<p>法律声明|备案证号：京ICP备11014623号-6    © 版权2012-2020 奇酷互联网络科技(深圳)有限公司</p>
	</div>
</div>
	<!--/footer-->
	</body>
</html>
